package com.study.d8_io_bone;

public class Test {
    public static void main(String[] args) throws Exception{
//        FileUtils.copyFile(new File("day10/src/dlei.txt"),new File("day10/src/dlei-bak.txt"));
//        FileUtils.copyDirectory(new File("C:\\Users\\51230\\Desktop\\资料"),new File("C:\\Users\\51230\\Desktop\\资料-bak"));
//        FileUtils.deleteDirectory(new File("C:\\Users\\51230\\Desktop\\资料-bak"));

        //JDK7 新增了单行复制相关的技术
//        Files.copy(Paths.get("day10/src/dlei2.txt"),Paths.get("day10/src/dlei2-bak.txt"));
//        Files.delete(Paths.get("day10/src/dlei2-bak.txt"));

    }
}
